<template>
  <div class="header">
    <van-nav-bar left-text="返回" :title="props.title" left-arrow @click-left="onClickLeft" fixed placeholder/>
  </div>
</template>

<script setup>
const onClickLeft = () => history.back()
const props = defineProps({
  title: {
    type: String
  }
})
// console.log(props.title)
</script>
<script>
export default {
  name: 'titleView'
}
</script>
<style lang="scss" scoped>
.header {
  height: 50px;
  z-index: 99999;
}

</style>
